<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="__STATIC__/bui-bootstrap/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="__STATIC__/bui-bootstrap/Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="__STATIC__/bui-bootstrap/Css/style.css" />
    <script type="text/javascript" src="__STATIC__/bui-bootstrap/Js/jquery.js"></script>
    <script type="text/javascript" src="__STATIC__/bui-bootstrap/Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="__STATIC__/bui-bootstrap/Js/bootstrap.js"></script>
    <script type="text/javascript" src="__STATIC__/bui-bootstrap/Js/ckform.js"></script>
    <script type="text/javascript" src="__STATIC__/bui-bootstrap/Js/common.js"></script>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
</head>
<body>
<form class="form-inline definewidth m20" action="index.html" method="get">
    菜单名称：
    <input type="text" name="menuname" id="menuname"class="abc input-default" placeholder="" value="">&nbsp;&nbsp; 
    <button type="submit" class="btn btn-primary">查询</button>&nbsp;&nbsp; <button type="button" class="btn btn-success" id="addnew">新增菜单</button>
</form>
<table class="table table-bordered table-hover definewidth m10">
    <thead>
    <tr>
        <th>菜单标题</th>
        <th>GROUP</th>
        <th>MODEL</th>
        <th>ACTION</th>
        <th>状态</th>
        <th>管理操作</th>
    </tr>
    </thead>
	    <!--- <tr>
            <td colspan="5">系统管理</td>
            <td><a href="edit.html">编辑</a></td>
        </tr>
        -->
        {volist name="menuList" id="vo"}
            {eq name="vo.pid" value="0"}
             <tr>
                <td colspan="5">{$vo.name}</td>
                <td><a href="{:url('menu/edit',['id'=>$vo.id])}">编辑</a></td>
            </tr>
            {else/}
            <tr>
                <td>{$vo.name}</td>
                <td>{$vo.module}</td>
                <td>{$vo.controller}</td>
                <td>{$vo.action}</td>
                <td>{$vo.status}</td>
                <td><a href="{:url('menu/edit',['id'=>$vo.id])}">编辑</a></td>
            </tr>
            {/eq}
        {/volist}
</table>

            
<div  class="inline pull-right page">
    {$menuList->render()}
</div>

</body>
</html>
<script>
    $(function () {
        

		$('#addnew').click(function(){

				window.location.href="add.html";
		 });


    });
	
</script>